package com.life.wd.service;

import com.life.wd.dto.SupplierDTO;
import com.life.wd.dto.SupplierUpdateDTO;
import com.life.wd.entity.Supplier;
import com.life.wd.result.PageResult;

import java.util.List;

public interface SupplierService {
    int addSupplier(Supplier supplier);

    PageResult listSupplier(SupplierDTO supplier);

    void updateSupplier(Integer id, SupplierUpdateDTO updateDTO);
    void deleteSupplier(Integer id);

    void validateSupplierExists(Integer supplierId);
}
